package sketch.generator.experiment;

import sketch.generator.SingleValueGenerator;

public class SingleValueGroupGenerator<T> extends ValueGroupGenerator<T> {

	public final SingleValueGenerator<T> generator;
	
	public SingleValueGroupGenerator(T t) {
		generator = new SingleValueGenerator<T>(t);
	}
	
	@Override
	public void reset() {
		super.reset();
		this.generator.reset();
	}
	
	@Override
	public boolean hasNext() {
		return generator.hasNext();
	}

	@Override
	protected ValueGroup<T> generateNext() {
		T t = generator.next();
		return this.createSingleValue(t);
	}
}
